package com.coin900.coin.service.fu;

import com.coin900.coin.persist.fu.FuCapitalTransactionVO;
import com.value.mybatis.IDaoRouter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 充值提现确认
 *
 * @author shui
 * @create 2018-2-2
 */
@Service
public class FuCapitalTransactionService implements IFuCapitalTransactionService {

    @Override
    public List<FuCapitalTransactionVO> loadFuCapitalTransaction(Map<String, Object> params){
        return this.daoRouter.query("FuCapitalTransaction.loadFuCapitalTransaction",params);
    }

    @Override
    public void insertFuCapitalTransaction(FuCapitalTransactionVO fuCapitalTransactionVO){
        this.daoRouter.insert("FuCapitalTransaction.insertFuCapitalTransaction", fuCapitalTransactionVO);
    }

    @Override
    public void updateFuCapitalTransaction(FuCapitalTransactionVO fuCapitalTransactionVO){
        this.daoRouter.update("FuCapitalTransaction.updateFuCapitalTransaction", fuCapitalTransactionVO);
    }

    @Override
    public void deleteFuCapitalTransaction(FuCapitalTransactionVO fuCapitalTransactionVO){
        this.daoRouter.update("FuCapitalTransaction.deleteFuCapitalTransaction", fuCapitalTransactionVO);
    }

    @Autowired
    private IDaoRouter daoRouter;

}